libxl: a domain can be dying but not shutdown
authorDavid Scott <dave.scott@citrix.com>
Wed, 22 Oct 2014 13:52:41 +0000 (14:52 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 4 Nov 2014 10:25:40 +0000 (10:25 +0000)
commitc9a1b736426b9ba5a96660ef3b23bb2f5100e79e
treeec3741751999531eb370dbb11d700e8c2921db0d
parent6f78e851395394ece4385b65ad0788840db2b5d1
libxl: a domain can be dying but not shutdown

The shutdown code is only present if the domain is shutdown.
If we attempt to extract it from the flags from a dying but not
shutdown domain then we get values like '255' which is not a
valid LIBXL_SHUTDOWN_REASON_. We should use LIBXL_SHUTDOWN_UNKNOWN
in this case.

Signed-off-by: David Scott <dave.scott@citrix.com>
Acked-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- updated comment in libxl_types.idl to match ]
tools/libxl/libxl.c
tools/libxl/libxl_types.idl